import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import 'normalize.css/normalize.css' // CSS 初始化
import '@/styles/index.scss' // 全局 css
import './router/permission' // 全局路由拦截
// 工具
import * as tools from './utils/tools'
Vue.use(Element)
Vue.prototype.$tools = tools

Vue.config.productionTip = false

import axiosUtil from './utils/base/axiosUtil.js'
import apiConfig from './utils/config/apiConfig.js'

Vue.prototype.axiosUtil = axiosUtil
Vue.prototype.apiConfig = apiConfig

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')